package com.crm.model.vo.performanceRankingManager;

import lombok.Data;

import java.math.BigDecimal;

/**
 */
@Data
public class CompanyPerformanceRankingYmVO implements Comparable<CompanyPerformanceRankingYmVO> {

    private String avatar;//用户头像id
    private String accountId;//用户名

    private String accountName;//用户名

    private BigDecimal arriveMoney;//到款金额

    @Override
    public int compareTo(CompanyPerformanceRankingYmVO ob) {
        if (ob.getArriveMoney() == null && arriveMoney == null) {
            return 0;
        }
        if (ob.getArriveMoney() == null) {
            return 1;
        }
        if (arriveMoney == null) {
            return -1;
        }
        return this.arriveMoney.compareTo(ob.getArriveMoney());
    }
}
